package com.mccken.springframework.beans.factory;

import java.util.Map;

import cn.hutool.core.bean.BeanException;

public interface ListableBeanFactory extends BeanFactory{

	/**
	 * 按照类型返回Bean实例
	 * @param type
	 * @param <T>
	 * @return
	 * @throws BeanException
	 */
	<T> Map<String, T> getBeansOfType(Class<T> type) throws BeanException;

	/**
	 * 返回注册表中所有的bean名称
	 * @return
	 */
	String[] getBeanDefinitionNames();
}
